class Employee:
    pass


class EmployeeManager:
    def __init__(self, employees):
        self.all_employee = employees

    def __iter__(self):
        for i in range(len(self.all_employee)):
            yield self.all_employee[i]  # 暂时离开   再次执行


manager = EmployeeManager([Employee(), Employee(), Employee()])
for element in manager:
    print(element)
